using System;

namespace WindowsPhoneMVC.Navigation.Exceptions
{
    /// <summary>
    /// Exception indicates that controller can not be found
    /// </summary>
    public class ControllerNotFoundException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ActionNotFoundException"/> class.
        /// </summary>
        /// <param name="actionName">Name of the action.</param>
        public ControllerNotFoundException(string actionName)
            : base(String.Format("Can not find controller '{0}' because there is no such type with that name ending in Controller", actionName))
        {
        }
    }
}